﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>top </title>
		<link rel="stylesheet" href="css/style.css" type="text/css" />
		<link rel="stylesheet" href="css/home.css" type="text/css" />
		<link rel="stylesheet" href="css1/div.css" type="text/css" />
		<link rel="stylesheet" href="css1/dr.css" type="text/css" />
		<link rel="stylesheet" href="css1/floatDiv.css" type="text/css" />
		<link rel="stylesheet" href="css1/font.css" type="text/css" />
		<link rel="stylesheet" href="css1/style.css" type="text/css" />
		<script src="js/jquery.pack.js" type="text/javascript"></script>
		<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="js/slide.js"></script>
		<script src="<%=request.getContextPath()%>/js/autoalert.js" type="text/javascript"></script>
		<!--for 下拉菜单js开始-->
		<script type="text/javascript" src="js/superfish.js"></script>
		<script type="text/javascript">

// initialise plugins
jQuery(function() {
	jQuery('ul.sf-menu').superfish();
});

</script>
		<!--for 下拉菜单js结束-->
	</head>
	<body onload="tick();">
		<%
			System.out.println(session.getAttribute("user"));
			//当session失效后进行的判断：给予提示并让管理员重新登录
			if (session.getAttribute("user") == null) {
				out
						.println("<script type='text/javascript'> window.location.href='login!logout.do' </script>");
				return;
			}
		%>
		<div class="wrapper">
			<!-- Begin top bar -->
			<div class="top_bar">
				<!-- Begin logo -->
				<div class="logo">
					<img alt="" src="img/logo.png">
				</div>
				<!-- End logo -->
				<!-- Begin name -->
				<div class="name">
					<h1>
						
					</h1>
				</div>
				<!-- End name -->
				<!-- Begin account menu -->
				<div class="account">
					<ul class="icon">
						<li>
							<a title="Message" href=""> <img class="middle" alt=""
									src="img/icon_message.png">
							</a>
						</li>
					</ul>
					<div class="detail">
						当前用户：
						<strong>${sessionScope.user.usrDesc}</strong><span
							style="padding: 0 5px">|</span>部门：
						<strong>${sessionScope.user.usrMrc.mrcDesc}</strong><span
							style="padding: 0 5px">|</span>
						<strong id="Clock"></strong><span style="padding: 0 5px">
						<a href="circulatefile!fileUpLoad.do?inputPath=upload/czsc.doc" style="color: #428000;">操作手册</a>&nbsp;&nbsp;|</span>
						<a href="login!logout.do" style="color: #428000;">退出系统</a>
					</div>
				</div>
				<!-- End account menu -->
			</div>
			<!--End top bar -->
			<!-- Begin main menu -->
			<div class="menu_wrapper">
				<ul class="nav sf-menu">
					<li>
						<a class="active" href="login!index.do"> 首页 </a>
					</li>
					${sessionScope.usermenu}
					<div class="clear"></div>
				</ul>
				<!-- End main menu -->
				<br class="clear" />
			</div>
			
			
</body>
</html>
<script type="text/javascript">
function tick() {
	var months, days, hours, minutes, seconds;
	var intMonths, intDays, intHours, intMinutes, intSeconds;
	var today, theday;
	today = new Date();
	function initArray() {
		this.length = initArray.arguments.length;
		for ( var i = 0; i < this.length; i++) {
			this[i + 1] = initArray.arguments[i];
		}
	}
	var d = new initArray(" 星期日", " 星期一", " 星期二", " 星期三", " 星期四", " 星期五",
			" 星期六");
	intMonths = today.getMonth() + 1;
	if (intMonths < 10) {
		months = "0" + intMonths;
	} else {
		months = intMonths;
	}
	intDays = today.getDate();
	if (intDays < 10) {
		days = "0" + intDays;
	} else {
		days = intDays;
	}
	theday = today.getFullYear() + "年" + months + "月" + days + "日"
			+ d[today.getDay() + 1];
	intHours = today.getHours();
	intMinutes = today.getMinutes();
	intSeconds = today.getSeconds();

	if (intHours < 10) {
		hours = " 0" + intHours + ":";
	} else {
		hours = " " + intHours + ":";
	}
	if (intMinutes < 10) {
		minutes = "0" + intMinutes + ":";
	} else {
		minutes = intMinutes + ":";
	}
	if (intSeconds < 10) {
		seconds = "0" + intSeconds + " ";
	} else {
		seconds = intSeconds + " ";
	}

	timeString = theday + hours + minutes + seconds;
	//Clock.innerHTML = timeString;
	$("#Clock").html(timeString);
	window.setTimeout("tick();", 100);
}
</script>
